<form id="form_auth_login" action="" class="default pleft" method="post" style="margin: 0 auto; width: 600px;">
	<fieldset>
		<legend>Админка</legend>
		<?php if (isset($_POST['auth'])): ?>
			<div class="row">
				<span style="color: red;"><?php echo $errmess; ?></span>
			</div>
		<?php endif; ?>
		<div class="row">
			<div class="label">Логин</div>
			<div class="field"><input type="text" name="auth[login]" value="<?php echo isset($_POST['auth']['login']) ? htmlspecialchars($_POST['auth']['login']) : ''; ?>" /></div>
		</div>
		<div class="row">
			<div class="label">Пароль</div>
			<div class="field"><input type="password" name="auth[password]" value="" /></div>
		</div>
		<div class="row" style="margin-bottom: -11px;">
			<table class="captcha" style="margin: 7px 0 0 0;">
				<tr>
					<td style="padding-right: 6px; width: 150px;"><img src="<?php echo URL::site(Route::get('captcha')->uri()); ?>" alt="Captcha" /></td>
					<td style="padding-right: 5px; width: 150px;"><input type="text" class="captcha" name="auth_captcha" value="" /></td>
					<td><input type="submit" class="bigsubmit" name="save" value="Войти" /></td>
				</tr>
			</table>
		</div>
		<div class="row">
			
		</div>
	</fieldset>
</form>
<script>
	$('#form_auth_login').css('margin-top', parseInt($(window).height() / 2 - 200) + 'px');
</script>